From 111f72e891a0132d4a864f66d9cd343e92f9a12e Mon Sep 17 00:00:00 2001 From: Lapo Calamandrei Date: Thu, 16 Oct 2014 14:22:20 +0200 Subject: [PATCH] Adwaita: list row hover color Now it's based of fg color, so the list row gets darker on the bright variant and brighter on the dark variant, similarly to what we do for spinbutton buttons. --- gtk/resources/theme/Adwaita/_common.scss | 4 ++-- gtk/resources/theme/Adwaita/gtk-contained-dark.css | 4 ++-- gtk/resources/theme/Adwaita/gtk-contained.css | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/gtk/resources/theme/Adwaita/_common.scss b/gtk/resources/theme/Adwaita/_common.scss index 2d8a5fb847..030781f49a 100644 --- a/gtk/resources/theme/Adwaita/_common.scss +++ b/gtk/resources/theme/Adwaita/_common.scss @@ -2421,7 +2421,7 @@ GtkScrolledWindow { border-radius: 0; // and no rounded corners box-shadow: none; // and no box-shadow &:hover { - background-color: mix(black, $base_color, 5%); + background-color: mix($fg_color, $base_color, 5%); } &:active { box-shadow: inset 0 2px 2px -2px transparentize(black,0.8); @@ -2429,7 +2429,7 @@ GtkScrolledWindow { &:selected { &:active { box-shadow: inset 0 2px 3px -1px transparentize(black,0.5); } &:hover { - background-color: mix(black, $selected_bg_color, 10%); + background-color: mix($fg_color, $selected_bg_color, 10%); } &:backdrop { background-color: $selected_bg_color; } } diff --git a/gtk/resources/theme/Adwaita/gtk-contained-dark.css b/gtk/resources/theme/Adwaita/gtk-contained-dark.css index 244906776e..7f103833ec 100644 --- a/gtk/resources/theme/Adwaita/gtk-contained-dark.css +++ b/gtk/resources/theme/Adwaita/gtk-contained-dark.css @@ -3556,13 +3556,13 @@ GtkCalendar.header .list-row.button.titlebutton { border-radius: 0; box-shadow: none; } .list-row.button:hover { - background-color: #262626; } + background-color: #323232; } .list-row.button:active { box-shadow: inset 0 2px 2px -2px rgba(0, 0, 0, 0.2); } .list-row.button:selected:active { box-shadow: inset 0 2px 3px -1px rgba(0, 0, 0, 0.5); } .list-row.button:selected:hover { - background-color: #1d538c; } + background-color: #356ba4; } .list-row.button:selected:backdrop { background-color: #215d9c; } diff --git a/gtk/resources/theme/Adwaita/gtk-contained.css b/gtk/resources/theme/Adwaita/gtk-contained.css index c52a29cb14..edb473e40d 100644 --- a/gtk/resources/theme/Adwaita/gtk-contained.css +++ b/gtk/resources/theme/Adwaita/gtk-contained.css @@ -3709,13 +3709,13 @@ GtkCalendar.header .list-row.button.titlebutton { border-radius: 0; box-shadow: none; } .list-row.button:hover { - background-color: #f2f2f2; } + background-color: #f4f4f4; } .list-row.button:active { box-shadow: inset 0 2px 2px -2px rgba(0, 0, 0, 0.2); } .list-row.button:selected:active { box-shadow: inset 0 2px 3px -1px rgba(0, 0, 0, 0.5); } .list-row.button:selected:hover { - background-color: #4281c3; } + background-color: #4786c8; } .list-row.button:selected:backdrop { background-color: #4a90d9; } -- 2.30.2